package be.rubengerits.android.car.dashboard.utils;

import java.util.Arrays;
import java.util.List;

import android.content.Context;
import be.rubengerits.android.car.dashboard.MainActivity;
import be.rubengerits.android.car.dashboard.R;

public class ResourceUtils {

	public final static List<String> getViewPagerLayouts() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		Context context = MainActivity.getContext();
		String[] fragmentsClasses = null;
		if (context != null) {
			fragmentsClasses = context.getResources().getStringArray(R.array.fragments);

			for (String field : fragmentsClasses) {
			}
		}

		return Arrays.asList(fragmentsClasses);
	}
}
